<template>
  <div class="md-layout-item md-small-size-100" v-bind:style="'min-width:'+ styleOject + '%;max-width:' + styleOject+ '%;'">
      <md-field v-bind:class="{'myradio': edittype == 'R'}">
        <label style="top:0px;">{{title.split('*')[0]}}：<span v-if="title.indexOf('*')>-1" style="color:#FF0000;">*</span></label>
        <slot></slot>
      </md-field>
  </div>
</template>
<script>
export default {
  props: {
    title: '',
    mergelen: undefined,
    edittype: undefined
  },
  data () {
    return {
      basewidth: 16.6
    }
  },
  computed: {
    styleOject: function () {
      return this.mergelen === undefined ? this.basewidth : this.basewidth * this.mergelen
    }
  }
}
</script>
